#root {
  height: 100%;
}

.ant-layout {
  min-height: 100vh;
}

.ant-layout-header {
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.ant-layout-sider {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ant-layout-content {
  margin: 24px 16px;
  padding: 24px;
  background: #fff;
  min-height: 280px;
}

.logo {
  float: left;
  width: 200px;
  height: 31px;
  margin: 16px 24px 16px 0;
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 31px;
  text-align: center;
  background: linear-gradient(45deg, #ff4d4f, #ff7a45);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-layout-background {
  background: #fff !important;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: #001529;
  color: white;
}

.ant-menu-item a {
  color: rgba(0, 0, 0, 0.85) !important;
}

.ant-menu-item-selected a {
  color: #1890ff !important;
}

.ant-menu-item:hover a {
  color: #1890ff !important;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .ant-layout-sider {
    position: fixed;
    z-index: 1;
    height: 100vh;
    left: 0;
    top: 0;
  }
  
  .header {
    padding: 0 16px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .user-info {
    gap: 8px;
  }
}

.ant-menu-inline {
  border-right: none;
}

.ant-card {
  box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16),
              0 3px 6px 0 rgba(0, 0, 0, 0.12),
              0 5px 12px 4px rgba(0, 0, 0, 0.09);
}

.ant-table {
  background: #fff;
}

.ant-pagination {
  margin-top: 16px;
}

.ant-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
}

.ant-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}

.ant-form-item-label > label {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
}

.ant-input:hover,
.ant-input:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.ant-modal-header {
  background: #f7f7f7;
  border-bottom: 1px solid #f0f0f0;
}

.ant-modal-footer {
  border-top: 1px solid #f0f0f0;
}

.ant-tabs-nav::before {
  border-bottom: 1px solid #f0f0f0;
}

.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #1890ff;
  font-weight: 500;
}

.ant-tabs-ink-bar {
  background: #1890ff;
}

.App {
    text-align: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f2f5;
}

.login-card {
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: red;
    margin-bottom: 10px;
}

.user-profile {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.user-management {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ranking-container {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 8px 16px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #40a9ff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
}

tr:hover {
    background-color: #f5f5f5;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info span {
    color: #fff;
}

.register-link {
    text-align: center;
    margin-top: 16px;
}

.register-link a {
    color: #1890ff;
}

.register-link a:hover {
    color: #40a9ff;
}

.content-container {
    padding: 24px;
    background: #fff;
    border-radius: 4px;
    min-height: calc(100vh - 64px - 48px);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 18px;
    color: #1890ff;
}

.menu-collapse-button {
    padding: 16px;
    text-align: center;
    background: #fff !important;
    color: rgba(0, 0, 0, 0.85) !important;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.menu-collapse-button .trigger {
    font-size: 18px;
    transition: color 0.3s;
}

.menu-collapse-button .trigger:hover {
    color: #1890ff !important;
}

.ant-menu {
    background: #fff !important;
    border-right: 1px solid #f0f0f0 !important;
    transition: all 0.3s;
}

.ant-menu-item {
    transition: all 0.3s;
    color: rgba(0, 0, 0, 0.85) !important;
}

.ant-menu-item:hover {
    background: #f5f5f5 !important;
    color: #1890ff !important;
}

.ant-menu-item-selected {
    background: #e6f7ff !important;
    color: #1890ff !important;
}

/* 删除按钮样式 */
.delete-button {
    color: #ff4d4f !important;
    border-color: #ff4d4f !important;
    background: #fff !important;
    font-weight: bold !important;
    box-shadow: 0 2px 0 rgba(255, 77, 79, 0.1) !important;
}

.delete-button:hover {
    background: #ff4d4f !important;
    color: white !important;
    border-color: #ff4d4f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 77, 79, 0.2) !important;
}

.delete-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(255, 77, 79, 0.1) !important;
}

/* 内容区域样式 */
.site-layout-content {
    background: #fff;
    padding: 24px;
    min-height: 280px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}